package com.guguskins.back.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 转盘表
 * </p>
 *
 * @author mybatis-plus
 * @since 2021-07-14
 */


@Data
@EqualsAndHashCode(callSuper = false)
@TableName("gu_turntable")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class GuTurntable extends Model<GuTurntable> {

    private static final long serialVersionUID = 1L;

    private Integer id;

    /**
     * 免费箱子1不免费2
     */
    private Integer ttType;

    /**
     * 1,箱子2,饰品3,道具卡4，优惠卷
     */
    private Integer ttPrizeType;

    /**
     * 奖品id
     */
    private Integer ttPrizeId;

    /**
     * 不免费箱子充值门槛
     */
    private BigDecimal ttOpenDoor;

    /**
     * 转数
     */
    private Long ttRevolutions;

    private LocalDateTime ttInputTime;

    private LocalDateTime ttUpdateTime;
    @TableField(exist = false)
    private GuBox guBox;
    @TableField(exist = false)
    private GuGoods guGoods;
    @TableField(exist = false)
    private GuProp guProp;
    @TableField(exist = false)
    private GuDiscount guDiscount;
    private Integer ttProbability;
    private Integer ttEnable;
    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
